package com.dnjn.happiness.emo.api;

import com.dnjn.happiness.common.core.constant.SecurityConstants;
import com.dnjn.happiness.common.core.constant.ServiceNameConstants;
import com.dnjn.happiness.common.core.domain.R;
import com.dnjn.happiness.emo.api.domain.UserHcmQxPtdata;
import com.dnjn.happiness.emo.api.factory.RemoteUserHcmQxPtdataFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient(contextId = "remoteUserHcmQxPtdataScoreService",value = ServiceNameConstants.EMO_SERVICE,fallbackFactory = RemoteUserHcmQxPtdataFactory.class)
public interface RemoteUserHcmQxPtdataService {

    @GetMapping("/userHcmQxPtdata/selectAttendance/{userId}/{time}")
    R<List<UserHcmQxPtdata>> selectAttendance(@PathVariable("userId") Long userId, @PathVariable("rtype") String rtype, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);



}
